import picklewrapper as pwr

FNAME = 'test.dat'

# EXAMPLE OF USING SAVE
x = 100
y = 200
pwr.save(FNAME, 'x','y')
del x,y

# EXAMPLE OF USING LOAD (METHOD 1) -- only works outside of functions/methods
pwr.load(FNAME)
assert(x == 100 and y == 200)

# EXAMPLE OF USING LOAD (METHOD 2)
del x,y
d = pwr.load(FNAME) 
x = d['x']; y = d['y']
assert(x == 100 and y == 200)
